package 设计模式.factory.simple;

/**
 * @Author: biubiu0002
 * @Date: 2021-07-11 22:39
 **/
public class Consumer {
    public static void main(String[] args) {
//        Car car1 = new WuLing();
//        Car car2 = new Tesla();
//        car1.name();
//        car2.name();
        Car car = CarFactory.getCar("特斯拉");
        car.name();
    }
}
